import request from '@/utils/request'

// 查询各站点价格配置列表
export function listSupplier(query) {
  return request({
    url: '/store/supplier/list',
    method: 'get',
    params: query
  })
}

// 查询各站点价格配置详细
export function getSupplier(id) {
  return request({
    url: '/store/supplier/' + id,
    method: 'get'
  })
}

// 新增各站点价格配置
export function addSupplier(data) {
  return request({
    url: '/store/supplier',
    method: 'post',
    data: data
  })
}

// 修改各站点价格配置
export function updateSupplier(data) {
  return request({
    url: '/store/supplier',
    method: 'put',
    data: data
  })
}

// 删除各站点价格配置
export function delSupplier(id) {
  return request({
    url: '/store/supplier/' + id,
    method: 'delete'
  })
}
